package com.smart.test.event_listener;

import org.springframework.context.ApplicationListener;

/**
 * @auther a123
 * @create 2018-08-13 15:24
 * @desc 邮件发送监听
 */
public class MailSendListener implements ApplicationListener<MailSendEvent> {

    //对MailSendEvent事件进行处理
    public void onApplicationEvent(MailSendEvent mailSendEvent) {
        System.out.println("MailSendListener:向" + mailSendEvent.getTo() + "发送完一封邮件");
    }
}
